package com.ruoyi.system.mapper;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.common.core.domain.PageQuery;
import com.ruoyi.common.core.mapper.BaseMapperPlus;
import com.ruoyi.system.domain.PStoreCart;
import com.ruoyi.system.domain.vo.CartInfoResponse;
import com.ruoyi.system.domain.vo.PStoreCartVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 购物车Mapper接口
 *
 * @author ruoyi
 * @date 2022-08-01
 */
public interface PStoreCartMapper extends BaseMapperPlus<PStoreCartMapper, PStoreCart, PStoreCartVo> {

    /**
     * 前端-自定义购物车列表
     */
    Page<CartInfoResponse> selectResponsePage(@Param("build") Page<Object> build, @Param("ew") LambdaQueryWrapper<PStoreCart> lqw);

    /**
     * 商城购物车
     */
    List<PStoreCart> selectByCustom(@Param("pageQuery") PageQuery pageQuery, @Param("userId") Long userId);
}
